package com.baseframe.auth.constant;

public interface BaseAuthConstant {
    static String USERNAME="username";
    static String PASSWORD="password";
    static String CAPTCHA_KEY="Captcha-key";
    static String CAPTCHA_CODE="Captcha-code";

    static String CAPTCHA_REDIS_KEY="base:oauth:captcha:";
    static String SMS_CAPTCHA_REDIS_KEY ="base:resources:sms:captcha:code:";


    static String BASE_TABLE_NAME = "base_client";

    static String SELECT_WHERE = " where client_id = ?";

    String AUTHORIZATION_CODE = "authorization_code";

    String CLIENT_FIELDS = "client_id,client_secret, resource_ids, scope, authorized_grant_types, " +
            "web_server_redirect_uri, authorities, access_token_validity, " +
            "refresh_token_validity, additional_information, autoapprove";

    static String SELECT_CLIENT_SQL = "select "+CLIENT_FIELDS+" from " + BASE_TABLE_NAME +SELECT_WHERE;


    static String SORT_CLIENT_LIST_SQL = SELECT_CLIENT_SQL + " order by client_id";


}
